﻿using Infrastructure.Web;
using MyData.Dto;
using MyData.Models;
using MyDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyApplication
{
   public class SyncErrorApp
    {
        private ISyncErrorRepository _syncErrorRepository;
        public SyncErrorApp(ISyncErrorRepository syncErrorRepository)
        {
            _syncErrorRepository = syncErrorRepository;
        }
        public PageDto<SyncErrorPageDto> GetSyncErrors(QueryListModel query, Guid mobileId, DateTime StartDate, DateTime EndDate)
        {
            return _syncErrorRepository.GetSyncErrors(query,mobileId, StartDate, EndDate);
        }
        public bool SaveSyncError(SyncError syncError)
        {
            return _syncErrorRepository.SaveSyncError(syncError);
        }
        public bool SyncErrorBatchDelete(List<Guid> Ids)
        {
            return _syncErrorRepository.SyncErrorBatchDelete(Ids);
        }
        public bool SyncErrorRepeate(Guid Id)
        {
            return _syncErrorRepository.SyncErrorRepeate(Id);
        }
    }
}
